$(document).ready(function () {


    $("#p1").click(function () {

        var player_sub = document.getElementById("player_sub");
        var node = document.getElementById("currentPlayer");
        player_sub.removeChild(node);


        var playerNode = document.createElement("embed");


        playerNode.setAttribute("id","currentPlayer");
        playerNode.setAttribute("src","http://yuntv.letv.com/bcloud.swf");

        playerNode.setAttribute("allowFullScreen","true");
        playerNode.setAttribute("quality","high");

        playerNode.setAttribute("width","640");
        playerNode.setAttribute("height","360");

        playerNode.setAttribute("align","middle");

        playerNode.setAttribute("allowScriptAccess","always");

        playerNode.setAttribute("flashvars","uu=h60sofndxp&vu=0aaadd661b&auto_play=1&gpcflag=1&width=640&height=360");

        playerNode.setAttribute("type","application/x-shockwave-flash");

        player_sub.appendChild(playerNode);
    })


    $("#p2").click(function () {
        var player_sub = document.getElementById("player_sub");
        var node = document.getElementById("currentPlayer");
        player_sub.removeChild(node);


        var playerNode = document.createElement("embed");


        playerNode.setAttribute("id","currentPlayer");
        playerNode.setAttribute("src","http://yuntv.letv.com/bcloud.swf");

        playerNode.setAttribute("allowFullScreen","true");
        playerNode.setAttribute("quality","high");

        playerNode.setAttribute("width","640");
        playerNode.setAttribute("height","360");

        playerNode.setAttribute("align","middle");

        playerNode.setAttribute("allowScriptAccess","always");

        playerNode.setAttribute("flashvars","uu=h60sofndxp&vu=fcbaecaaea&auto_play=1&gpcflag=1&width=640&height=360");

        playerNode.setAttribute("type","application/x-shockwave-flash");

        player_sub.appendChild(playerNode);

    })


    $("#p3").click(function () {

    })


    $("#p4").click(function () {

    })

});